/**
 * Created with IntelliJ IDEA.
 * Description:BOKD
 * User: 34321
 * Date: 2024-11-05
 * Time: 6:48
 */
public class Person {
        String name;
        String gender;
        int age;

        public Person(String name, String gender, int age) {
            this.name = name;
            this.gender = gender;
            this.age = age;
        }

//        @Override
//            public String toString() {
//            return "[" + name + "," + gender + "," + age + "]";
// }
        @Override
        public  String toString(){
            return "["+name+","+gender+","+age+"]";
        }

        public static void main(String[] args) {
            Person person = new Person("Jim","男", 18);
            System.out.println(person);
        }
    }


